//
//  HeaderViewController.m
//  MaxMovie
//
//  Created by Maxdong on 14-12-24.
//  Copyright (c) 2014年 lanou3g.com 蓝欧科技. All rights reserved.
//

#import "HeaderViewController.h"
#import "NetworkHandler.h"
@interface HeaderViewController ()<UIWebViewDelegate>

@end

@implementation HeaderViewController

- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
{
    self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
    if (self) {
    }
    return self;
}

- (void)viewDidLoad
{
    [super viewDidLoad];

    //webview!!!!!!!!!!!!!
    UIWebView *webview = [[UIWebView alloc]initWithFrame:CGRectMake(0,0,self.view.frame.size.width,self.view.frame.size.height )];
    webview.backgroundColor = [UIColor whiteColor];
    [webview setScalesPageToFit:YES];
    NSURL *url = [NSURL URLWithString:_str];
    NSURLRequest *request = [NSURLRequest requestWithURL:url];
    webview.delegate = self;
    [webview loadRequest:request];
    [self.view addSubview:webview];
    
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}


@end
